<title>网站用户</title>
  
<div class="layui-card layadmin-header">
  <div class="layui-breadcrumb" lay-filter="breadcrumb">
    <a lay-href="">主页</a>
    <a><cite>用户</cite></a>
    <a><cite>网站用户</cite></a>
  </div>
</div>

  <div class="layui-fluid">
        <div class="layui-card">
          <div class="layui-card-header">站点设置</div>
    <form class="layui-form layui-card-header layuiadmin-card-header-auto" lay-filter="J_ajaxForm">
      <div class="layui-form-item">
        <div class="layui-inline">
          <label class="layui-form-label">关键字</label>
          <div class="layui-input-block">
            <input type="text" name="word" class="layui-input">
          </div>
        </div>
        
        <div class="layui-inline">
          <label class="layui-form-label">链接</label>
          <div class="layui-input-block">
            <input type="text" name="url" class="layui-input">
          </div>
        </div>
        
        <div class="layui-inline">
          <button class="layui-btn" lay-submit lay-filter="J_form_search">搜索</button>
        </div>
        
      </div>
    </form>
  
    <div class="layui-card-body">
      <div style="padding-bottom: 10px;">
        <button class="layui-btn btn_action" data-type="add">添加</button>
        <button class="layui-btn btn_action" data-type="del">删除</button>
      </div>
      <table id="J_table_list" lay-filter="J_table_list"></table>
    </div>
    

  </div>
</div>
      <script type="text/html" id="J_table_tool">
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
      </script>

<script>
layui.use(['table'], function(){
  var table = layui.table;

  //执行渲染
table.render({
  elem: '#J_table_list'
  ,data: {$data|raw}
  ,cols: [[
      {type: 'checkbox',fixed:'left'}
      ,{field:'id',title:'ID',width:80,align:'center'}
      ,{field:'word',title:'关键字',minWidth:100}
      ,{field:'url',title:'链接',minWidth:100}
      ,{title:'操作',width:150,align:'center',toolbar:'#J_table_tool'}
  ]]
  ,page: true
    ,limit: 2
    ,height: 'auto'
  ,text: '对不起，加载出现异常！'
});

});
</script>